package cn.test.action.user;

import cn.test.bean.User;
import cn.test.service.UserService;

import com.opensymphony.xwork2.ActionSupport;

public class UserRemoveAction extends ActionSupport {
private UserService userService;
private User user;
public UserService getUserService() {
	return userService;
}
public void setUserService(UserService userService) {
	this.userService = userService;
}
public User getUser() {
	return user;
}
public void setUser(User user) {
	this.user = user;
}
@Override
	public String execute() throws Exception {
	userService.removeUser(user);	
	return SUCCESS;
	}
}
